const Koa = require('koa');
const app = new Koa();
const bootstrap = require('./bootstrap');
const body = require('koa-body');
const cors = require('koa2-cors');

app.use(cors())
app.use(body({
    multipart: true,
    formidable: {
        maxFileSize: 100 * 1024 * 1024	// 设置上传文件大小最大限制，默认2M
    }
}));
bootstrap(app)
app.use(require('koa-static')('static', {}));
app.listen(8900)